package sk.sigp.aobot;

import java.util.ArrayList;
import java.util.List;

import sk.sigp.aobot.client.core.Server;

public class Servers {

	public static List<Server> SERVERS = new ArrayList<Server>();
	
	public static void addServer(Server server) {
		SERVERS.add(server);
	}
	
	public static void addServer(String name, String url, int port) {
		SERVERS.add(new Server(name, url, port));
	}
	
	public static List<Server> getServers() {
		return SERVERS;
	}

	public static void validate() {
		if (SERVERS.isEmpty()) {
			SERVERS.add(new Server("Rimor","chat.d2.funcom.com",7102));
			SERVERS.add(new Server("Atlantean","chat.d1.funcom.com",7101));
			SERVERS.add(new Server("Die Neue Welt","chat.d3.funcom.com",7103));
			SERVERS.add(new Server("Test","chat.dt.funcom.com",7109));
		}
	}
	
}
